export type TRegionIndex = number[][];
import type { fabric } from 'fabric';

export interface TRegionInfo {
  area: number;
  bbox: number[];
  index: number;
  region: string;
  maskImage?: HTMLCanvasElement;
}

export interface IPreSegInfo {
  regionIndex: TRegionIndex;
  regionInfos: TRegionInfo[];
}

export interface ISegMaskInfo {
  pixelData: Uint8ClampedArray;
  fabricImage: fabric.Image;
}

export interface ISegMaskInfo2 {
  pixelData: Uint8ClampedArray;
  fabricObj: fabric.Image | fabric.Path;
}

export interface ISegMaskPreviewInfo {
  pixelIndex?: number;
  grayMask?: string;
  previewMask: HTMLCanvasElement;
}
